package j02liu;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.Arrays;

public class J1 {
    public static void main(String[] args) throws Exception {
        FileInputStream f = new FileInputStream("_1218/src/j02liu/hlm.txt");
        FileInputStream f2 = new FileInputStream(
                new File("_1218/src/j02liu/hlm.txt")
        );
//        System.out.println((char) f.read());
//        System.out.println((char)f.read());
//        System.out.println((char)f.read());//?
//        System.out.println((char)f.read());//?
//        System.out.println((char)f.read());//?

//        byte[] byteArr = new byte[30];
//        f.read(byteArr);
//        System.out.println(Arrays.toString(byteArr));
        f.skip(1);
        while (true){
            int b = f.read();
            if(b==-1){
                f.close();
                return;
            }
            System.out.println("b = " + b);
        }

    }
}
